﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="StandardValue.aspx.cs" Inherits="MedicalCare.Admin.StandardValue" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%-- <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
    </asp:ScriptManager>--%>
<%--     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>--%>

    <asp:RadioButtonList ID="rblEquipmentsType" AutoPostBack="true" 
        RepeatDirection="Horizontal" runat="server" 
        onselectedindexchanged="rblEquipmentsType_SelectedIndexChanged">
         
    </asp:RadioButtonList>
    <br />
    <asp:DataList ID="dlStandardValueList" runat="server" CellPadding="2" 
             onitemcommand="dlStandardValueList_ItemCommand">
                    <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderTemplate>
                        <table cellpadding="2" cellspacing="0" border="0">
                            <tr>
                                <td style="width: 150px; text-align: center">
                                    项名
                                </td>
                                <td style="width: 150px; text-align: center">
                                    标准值
                                </td>
                                 <td style="width: 150px; text-align: center">
                                    单位
                                </td>
                                <td style="width: 150px; text-align: center">
                                    操作
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table cellpadding="2" cellspacing="0" border="0">
                            <tr onmouseover="this.style.background ='#FFDEAD';"  onclick="changeRadioSelected(this)"
                            onmouseout="this.style.background ='#ffffff'">
                                <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "ItemName")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "Value")%>
                                </td>
                                 <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "Unit")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                   <asp:Button ID="btEdit" runat="server"  CommandName="edit" Text="编辑"  CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%>' />
                                   <asp:Button ID="btDelete" runat="server"  CommandName="del" Text="删除" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%>' />
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                </asp:DataList>
    <br />
    <asp:Button ID="btnAddItem" runat="server" Text="添加标准值" onclick="btnAddItem_Click"  />
    <br />
    <asp:Panel ID="pnlStandardDetails" runat="server" Visible="false">
       <table>
            <tr>
                <td>标准项名</td>  <td><asp:TextBox ID="tbItemName" runat="server" Width="80px"></asp:TextBox></td>
             </tr>
            <tr>    <td>数值</td>
                <td><asp:TextBox ID="tbItemValue" runat="server" Width="80px"></asp:TextBox></td>
            </tr>
            <tr>     <td>单位</td>
                <td><asp:TextBox ID="tbUnit" runat="server" Width="80px"></asp:TextBox></td>
            </tr>
            <tr>
            <td colspan="4"><asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click"  />
                <asp:Button ID="btnCancel" runat="server" Text="取消" onclick="btnCancel_Click"  />
             </td>
            </tr>
        </table>
    </asp:Panel>
    <span id="spanMsg" runat="server"></span>
<%--    </ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>
